<template>
	<view class="layout">
		<view class="myface">
			<image :src="face" mode="widthFix"></image>
		</view>
		<view class="nickname">
			<text>{{ nickname }}</text>
		</view>
	</view>
</template>

<script setup>
	import { onLoad } from '@dcloudio/uni-app'
	import global from '../../common/global.js'
	import { ref } from 'vue';
	const face = ref('../../static/logo.png');
	const nickname = ref('微信用户')
	let loginRes;
	
	
	onLoad(()=>{
		loginRes = global.checkLogin('../my/my','2');
		if(!loginRes){return false;}
	})
	
</script>

<style lang="scss">
	.layout{
		padding: 20rpx;
		.myface{
			display: flex;
			justify-content: center;
			align-items: center;
			image{
				width: 200rpx;
				height: 200rpx;
				border-radius: 50%;
			}
		}
		.nickname{
			margin-top: 20rpx;
			text-align: center;
		}
	}  
</style>
